// pages/going/goimg.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    originName:'',
    originTime:'',
    terminusName:'',
    terminusTime:'',
    month:'',
    day:'',
    name:'',
    number:'',
    phone:'',
    infare: false
  },

  goto(){
    wx.switchTab({
      url: '/pages/index/index',
    })
  },

  GAorder(){
    wx.navigateTo({
      url: '/pages/g-a-order/g-a-order',
    })
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad(options) {
  
  },

  onShow(){
    const infare = wx.getStorageSync('infare');
    if (infare) {
      this.setData({
        infare:  true,
        originName: infare.originName, 
        originTime: infare.originTime,  
        terminusName:infare.terminusName,
        terminusTime:infare.terminusTime, 
        month:infare.month, 
        day:infare.day, 
        name:infare.name, 
        number:infare.number, 
        phone:infare.phone, 
      });
  } else {
      this.setData({
        infare: false
      });
  }
  },
})